package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.JcwwxMapper;
import com.information.manage.MaintenanceRecord.pojo.Jcwwx;
import com.information.manage.MaintenanceRecord.service.JcwwxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JcwwxServiceImpl implements JcwwxService {
    @Autowired
    private JcwwxMapper jcwwxMapper;

    @Override
    public List<Jcwwx> selectAll() {
        return jcwwxMapper.selectAll();
    }

    @Override
    public void addMaintJcwwx(Jcwwx jcwwx) {
        jcwwxMapper.insert(jcwwx);
    }

    @Override
    public void updateMaintJcwwx(Jcwwx jcwwx) {
        jcwwxMapper.update(jcwwx);
    }

    @Override
    public void deleteMaintJcwwx(Integer jcwwxid) {
        jcwwxMapper.delete(jcwwxid);
    }

    @Override
    public void logicDeleteMaintJcwwx(Integer jcwwxid) {
        jcwwxMapper.logicDelete(jcwwxid);
    }
}